/*
 * XDVApplication.h
 *
 *  Created on: May 21, 2013
 *      Author: daviD
 */

#ifndef XDVAPPLICATION_H_
#define XDVAPPLICATION_H_

class XDVApplication
{
public:
	virtual ~XDVApplication();
	static XDVApplication& Instance()
	{
	    static XDVApplication singleton;
	    return singleton;
	}

	void Quit() {m_quit = true;}
	void CancelQuit() {m_quit = false;}
	bool IsQuitting() {return m_quit;}

private:
	XDVApplication();
	XDVApplication(const XDVApplication&);
	XDVApplication& operator=(const XDVApplication&);

	bool m_quit;
};

#endif /* XDVAPPLICATION_H_ */
